翻訳と辞書
Words near each other
・ Station Cours du Médoc (Tram de Bordeaux)
・ Station Creek
・ Station days
・ Station Diary
・ Station Doyen Brus (Tram de Bordeaux)
・ Station Eleven
・ Station Exchange
・ Static analysis
・ Static Anonymity
・ Static apnea
・ Static bar
・ Static battle
・ Static Blue
・ Static build
・ Static Caravan Recordings
Static cast
・ Static cling
・ Static core
・ Static discharger
・ Static discipline
・ Static efficiency
・ Static electricity
・ Static forces and virtual-particle exchange
・ Static grass
・ Static hashing
・ Static Icon
・ Static import
・ Static Impulse
・ Static in Stereo
・ Static in Transmission


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Static cast : ウィキペディア英語版
Static cast

In C++ type conversion, the static_cast operator does an explicit type conversion.
==Syntax==

static_cast (object);

The ''type'' parameter must be a data type for which there is a known method for converting ''object'' to, whether this be a builtin or through a casting function. It can be a reference or an enumerator.
All types of conversions that are well-defined and allowed by the compiler are done using static_cast.
The static_cast operator can be used for operations such as
* Converting a pointer of a base class to a pointer of a derived class,
* Convert numeric data types such as enums to ints or ints to floats.
However, static_cast conversions are not necessarily safe as no run-time type check is done which can cause casting between incompatible data types, for example pointers. However, this is checked at compile time to prevent casting obvious incompatibles. Also, static_cast between pointer of a virtual base to pointer of derived is not allowed, because of the object layout model.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Static cast」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.